package com.example.bookmanagersystem.repository;

import com.example.bookmanagersystem.entity.Reader;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ReaderRepository extends JpaRepository<Reader, Long> {
    // 根据姓名查询
    List<Reader> findByNameContaining(String name);

    // 根据电话查询
    Reader findByPhone(String phone);
}